<template>
  <div class="goods">
    <PageContent :contentTableConfig="contentTableConfig" :pageName="pageName">
      <template #image="scope">
        <el-image
          style="width: 60px; height: 60px"
          :src="scope.row.imgUrl"
          :preview-src-list="[scope.row.imgUrl]"
        >
        </el-image>
      </template>
      <template #newPrice="scope">{{ "¥" + scope.row.newPrice }}</template>
    </PageContent>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import PageContent from "@/components/page-content";
import { contentTableConfig } from "./config/contentConfig";
export default defineComponent({
  name: "Goods",
  components: {
    PageContent,
  },
  setup() {
    const pageName = "goods";
    return {
      pageName,
      contentTableConfig,
    };
  },
});
</script>

<style scoped></style>
